/**
 * 时间格式
 */
export const DateFormatEnum = {
  DATE: 'YYYY/MM/DD',
  DATE_FORM: 'YYYY-MM-DD',
  DATE_POINT: 'YYYY.MM.DD',
  MONTH_FORM: 'MM-DD',
  DATETIME: 'YYYY/MM/DD HH:mm:ss',
  TIME: 'hh:mm:ss',
  // 24小时制
  HOUR: 'HH:mm',
  DATETIME_NO_SECOND: 'YYYY/MM/DD HH:mm',
  DATETIME_FORM: 'YYYY-MM-DD HH:mm:ss',
  DATETIME_FORM1: 'YYYY.MM.DD HH:mm:ss',
  DATETIME_FORM2: 'YYYY-MM-DD HH:mm',
  WORD: 'YYYY年MM月DD日',
  WORD1: 'YYYY年MM月DD日HH时mm分',
  DATE_MONTH: 'YYYY-MM'
};

export type DirectoryMoveItem = {
  sourceIds: Array<number>;
  targetDirectoryId: number;
};

export type ProvinceItem = Array<{
  province: string;
  code: string;
  cityList?: Array<{
    name: string;
    code: string;
  }>;
}>;

export type OrgAndProVinceCode = {
  organizationCode: string;
  provinceCode: string;
};

export type OrgProvinceForm = {
  provinceCode: string;
  orgCode: string;
  provinceList: Array<ProvinceListItem>;
  orgList: Array<OrgListItem>;
};

export type ProvinceListItem = {
  code: string;
  province: string;
};

export type OrgListItem = {
  code: string;
  name: string;
};

export enum PowerTypeEnum {
  ADMIN = 2
}

export const PageTypeEnum = {
  DELETE: '99',
  ADD: '0',
  EDIT: '1',
  COPY: '2'
};
